<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>大事件-文章</title>
    <link rel="stylesheet" type="text/css" href="css/reset.css">
    <link rel="stylesheet" href="css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="css/main.css">
</head>

<body>
    <div class="header">
        <a href="#" class="logo fl"><img src="images/logo.png" alt="logo"></a>
        <div class="search_form fl">
            <input type="text" class="search_txt" placeholder="黑洞照片">
            <button class="search_btn"><i class="fa fa-search"></i></button>
        </div>
        <div class="link_info fr">
            <a href="#"><i class="fa fa-angle-right"></i>&nbsp;&nbsp;网站地图</a><br>
            <a href="#"><i class="fa fa-angle-right"></i>&nbsp;&nbsp;招聘信息</a>
        </div>
    </div>

    <div class="menu_con">
        <div class="menu">
            <div class="menu_collapse fl">
                <a href="javascript:;" class="level_one"><i class="fa fa-list-ul"></i>全部分类</a>
                <ul class="level_two">
                    <li class="up"></li>
                    <li><a href="#">最 新</a></li>
                    <li><a href="#">科 技</a></li>
                    <li><a href="#">股 市</a></li>
                    <li><a href="#">商 品</a></li>
                    <li><a href="#">外 汇</a></li>
                    <li><a href="#">公 司</a></li>
                </ul>
            </div>
            <ul class="left_menu fl">
                <li><a href="#">最 新</a></li>
                <li><a href="#">科 技</a></li>
                <li><a href="#">股 市</a></li>
                <li><a href="#">商 品</a></li>
                <li><a href="#">外 汇</a></li>
                <li><a href="#">公 司</a></li>
            </ul>
            <ul class="right_menu fr">
                <li><a href="#">科技专题</a></li>
                <li><a href="#">财经专题</a></li>
            </ul>
        </div>
    </div>

    <div class="main_con clearfix">
        <div class="left_con setfr">
            <div id="getarticle"></div>

            <form action="" class="comment_form">
                <div class="form_group">
                    <label>用户名：</label>
                    <input type="text" placeholder="请输入用户名" class="comment_name">
                </div>
                <div class="form_group">
                    <label>评论内容：</label>
                    <textarea placeholder="请发表您的评论" class="comment_input"></textarea>
                </div>
                <div class="form_group">
                    <input type="submit" name="" value="评 论" class="comment_sub">
                </div>
            </form>

            <div class="comment_count">
                4条评论
            </div>

            <div class="comment_list_con">
                <div class="comment_detail_list">
                    <div class="person_pic fl">乔</div>
                    <div class="name_time fl"><b>虚竹</b><span>4小时前</span></div>
                    <div class="comment_text fl">
                        遏制茅台酒价格过快上涨，多渠道供给，就不一定要买，租茅台酒也可以的，租售同权。开发共有产权茅台酒，让老百姓喝得起茅台酒，饮者有其酒。
                    </div>
                </div>
            </div>
        </div>
        <div class="right_con setfl">
            <div class="common_wrap">
                <h3><i class="fa fa-bar-chart"></i> 一周热门排行</h3>
                <ul class="content_list" id="Rank">

                </ul>
            </div>
            <div class="common_wrap">
                <h3><i class="fa fa-commenting-o"></i> 最新评论</h3>
                <ul class="content_list comment_list">

                </ul>
            </div>
            <div class="common_wrap">
                <h3><i class="fa fa-bullseye"></i> 焦点关注</h3>
                <ul class="content_list guanzhu_list">

                </ul>
            </div>
        </div>
    </div>

    <div class="footer clearfix">
        <div class="foot_link">
            <a href="#">关于我们</a>
            <span>|</span>
            <a href="#">联系我们</a>
            <span>|</span>
            <a href="#">招聘人才</a>
            <span>|</span>
            <a href="#">友情链接</a>
        </div>
        <p>CopyRight © 2019 深圳大事件信息技术股份有限公司 All Rights Reserved</p>
        <p>电话：0755-****888 粤ICP备*******8号</p>
    </div>

    <!-- 引入模板引擎js文件 -->
    <script src="./js/template-web.js"></script>
    <script src="./js/jquery-1.12.4.min.js"></script>
    <script src="./admin/libs/layui/layui.all.js"></script>
    <script src="./admin/js/utils.js"></script>
    <script src="./js/article.js"></script>

    <!-- 热门---------------------------------------------------------------排行 -->
    <!-- 模板 -->
    <script type="text/html" id="rank">
        {{each data}}
        {{if $index == 0}}
        <li><span class="first">{{$index+1}}</span><a href="#">{{$value.title}}</a></li>
        {{else if $index==1}}
        <li><span class="second">{{$index+1}}</span><a href="#">{{$value.title}}</a></li>
        {{else if $index==2}}
        <li><span class="third">{{$index+1}}</span><a href="#">{{$value.title}}</a></li>
        {{else}}
        <li><span>{{$index+1}}  </span><a href="#">{{$value.title}}</a></li>
        {{/if}}
        {{/each}}
    </script>
    <!-- 最新---------------------------------------------------------------评论 -->
    <script type="text/html" id="comment">
        {{each data}}
        <li>
            <span>{{$value.author.substr(0,1)}}</span>
            <b><em>{{$value.author}}</em>{{$value.date}}-{{$value.time}}说:</b>
            <strong>{{$value.intro}}</strong>
        </li>
        {{/each}}
    </script>
    <!-- 焦点---------------------------------------------------------------关注 -->
    <script type="text/html" id="attention">
        {{each data}}
            <li><a href="#">{{$value.intro}}</a></li>
        {{/each}}
    </script>
    <!-- 文章---------------------------------------------------------------内容 -->
    <script type="text/html" id="artitle">
        <div class="breadcrumb">
            当前位置： <a href="#">首页</a> &gt; <a href="#">科技</a> &gt; 文章详情
        </div>
        <h3 class="article_title">{{title}}</h3>
        <div class="article_info">{{author}} 发布于 {{date}}&nbsp;&nbsp;&nbsp;分类: {{category}}&nbsp;&nbsp;&nbsp;阅读:
            ({{read}})&nbsp;&nbsp;&nbsp;评论: ({{comments}})</div>
        <div class="article_con">

            <p>{{content}}</p>
        </div>
        <div class="article_links">
            {{if prev==null}}
            上一篇： <a href="javascript:;">空</a><br>
            {{else}}
            上一篇： <a href="article.html?id={{prev.id}}">{{prev.title}}</a><br>
            {{/if}}
            {{if next==null}}
            下一篇： <a href="javascript:;">空</a><br>
            {{else}}
            下一篇： <a href="article.html?id={{next.id}}" >{{next.title}}</a>
            {{/if}}
        </div>
    </script>
    <!-- 评论-------------------------------------------------------------------列表 -->
    <script type="text/html" id="Comment">
        {{each data}}
        <div class="person_pic fl">{{$value.author.substr(0,1)}}</div>
                    <div class="name_time fl"><b>{{$value.author}}</b><span>{{$value.date}}-{{$value.time}}</span></div>
                    <div class="comment_text fl">
                        {{$value.content}}
                    </div>
        {{/each}}
    </script>
</body>

</html>